]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
remoteSearch: exclude content from hidden apps
authorSimon Schampijer <simon.schampijer@endlessm.com>
Thu, 9 Nov 2017 17:01:58 +0000 (18:01 +0100)
committerCosimo Cecchi <cosimo@endlessm.com>
Wed, 5 Jun 2019 23:15:42 +0000 (16:15 -0700)
Some apps may be configured as NoDisplay=true, but still install
a search provider.
Like we do elsewhere, exclude them from showing up in the UI.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/568

js/ui/remoteSearch.js

index 1b9186bdc4d0f11f6c35c2938f00162a5823059a..ce8c4d09bc098e44fe775ab37a721207a52d5acc 100644 (file)
@@ -89,6 +89,8 @@ function loadRemoteSearchProviders(searchSettings, callback) {
             try {
                 let desktopId = keyfile.get_string(group, 'DesktopId');
                 appInfo = Gio.DesktopAppInfo.new(desktopId);
+                if (!appInfo.should_show())
+                    return;
             } catch (e) {
                 log('Ignoring search provider ' + path + ': missing DesktopId');
                 return;